#include <iostream>
using namespace std;
/*
Define a function that takes a double argument and returns an int. 

Create and initialize a pointer to this function, and call the function through your pointer.
*/

int function1(double d)
{
    cout << "function is called and the argument is " << d << endl;
    return 0;
}

int main()
{
    int (*functionPointer)(double d);
    functionPointer = function1;

    (*functionPointer)(0.1);
    return 0;
}

